/**********************************************************************
 * Feecent Software Technologies
 * All Rights Reserved.
 * 
 * NOTICE:  All information contained herein is, and remains
 * the property of Feecent Software Technologies and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Feecent Software Technologies
 * and its suppliers and may be covered by China and Foreign Patents,
 * patents in process, and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Feecent Software Technologies.
 **********************************************************************/
package com.hama.iotrust.common.util;

import java.util.Locale;
import java.util.ResourceBundle;

import org.springframework.context.ApplicationContext;
/**
 * 
 * @author y11285
 * 得到国际化信息
 */
public final class MessageResource {
	private static Locale _defaultLocale = Locale.getDefault();
	private MessageResource() {
		
	}
	/**
	 * 
	 * @param baseName 消息基础路径
	 * @return ResourceBundle
	 */
	public static String GetMessage(String baseName, Object[] args) { 
		ApplicationContext context = SpringContextHolder.getApplicationContext();
		return context.getMessage(baseName, args,  _defaultLocale);
	}
}
